<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/4/10
  Time: 16:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head>
    <title>添加教师</title>
</head>
<body>

    <c:if test="${param.pd == '1'}">
        <script>alert("添加成功！！");</script>
    </c:if>
    <h1>教师添加</h1>
    <hr />
    <form action="/addteacher" method="post">
       姓名：<input type="text" name="thname" /><br />
       性别：<input type="radio" name="sex" checked="checked" value="1" />男<input type="radio" name="sex" value="0" />女<br />
       年龄：<input type="text" name="age" /><br />
       学科：<input type="text" name="bookname" /><br />
       <button type="submit">添加</button> <button type="button" onclick="javascript:location.href='queryteacher'">查询教师</button>
    </form>

</body>
</html>
